//
//  BaseNavigationViewController.m
//  ZHYBaseProject
//
//  Created by 周后云 on 2018/12/20.
//  Copyright © 2018 周后云. All rights reserved.
//

#import "BaseNavigationViewController.h"

@interface BaseNavigationViewController ()

@end

@implementation BaseNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    if (self.childViewControllers.count > 0 && self.hidesChildBottomBarWhenPushed) {
        // 非根控制器，隐藏底部的tabbar
        viewController.hidesBottomBarWhenPushed = YES;
    }
    
    [super pushViewController:viewController animated:animated];
}

@end
